<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
		<script>
			function Student(name, age, show){
				this.name = name;
				this.age = age;
				this.show = show;
				this.abc=function(){
					var cont = document.createElement("p");
					document.getElementsByTagName("body")[0].appendChild(cont);
					cont.innerHTML = "姓名：" + this.name + "<br/>年龄："+this.age+"<br/>自我介绍：" +this.show;
					
				}
			}
			var stu = new Student("王小明",16, "我是高一的学生");
			stu.abc();
			var stu1 = new Student("黄妞妞",6, "我今年6对了，马上就上幼儿园了");
			stu1.abc();
		</script>
	</body>
</html>
